<style type="text/css">
a {
	cursor: pointer;
}
.site.form-group .btn-group, .form-group .group.btn-group, .form-group .from.btn-group, .form-group .from_user.btn-group, .form-group .asign_user.btn-group, .priority.form-group .btn-group {
	margin-left: 10px;
}
.site .btn-group .dropdown-toggle {
	min-width: 180px;
	text-align: left;
}
.group.btn-group .dropdown-toggle, .from.btn-group .dropdown-toggle, .from_user.btn-group .dropdown-toggle, .asign_user.btn-group .dropdown-toggle, .priority .btn-group .dropdown-toggle {
	min-width: 160px;
	text-align: left;
}
</style>
<div class="pageheader">
	<h2>
		<i class="fa fa-sitemap"></i>办公管理
	</h2>
	<div class="breadcrumb-wrapper">
		<span class="label">你所在的位置：</span>
		<ol class="breadcrumb">
			<li><a href="/index">ERP管理系统</a></li>
			<li>办公管理</li>
			<li>我的需求</li>
			<li class="active">评价需求</li>
		</ol>
	</div>
</div>
<div class="contentpanel">
    <div class="main">
    <form action="/office/evaluate" method="post" class="form-horizontal">
        <?php $qaitem = $this->qaitem;?>
        <div class="form-group form-inline">
            <label for="Title" class="col-sm-2 control-label">标题：</label>
            <div class="col-sm-10">
                <input type="hidden" class="form-control" name="id" size="100" value="<?php echo $qaitem['id']; ?>">
                <input type="text" readonly="readonly" class="form-control" size="100" value="<?php echo $qaitem['title']; ?>">
            </div>
        </div>
        <div class="form-group form-inline">
            <label for="Site" class="col-sm-2 control-label">网站：</label>
            <div class="col-sm-10">
                <input type="text" readonly="readonly" class="form-control" size="100" value="<?php echo $qaitem['site']; ?>">
            </div>
        </div>
        <div class="form-group form-inline">
            <label for="Evaluate" class="col-sm-2 control-label">评价：</label>
            <div class="col-sm-10">
                <textarea rows="5" cols="100" class="form-control" name="evaluate"><?php echo $qaitem['evaluate']; ?></textarea>
            </div>
        </div>
        <div class="form-group form-inline">
            <label for="Needasign" class="col-sm-2 control-label">需求指派：</label>
            <div class="btn-group asign_user">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="text"><?php echo $qaitem['task_name'];?></span></button>
            </div>
        </div>
        <div class="form-group priority">
            <label for="Priority" class="col-sm-2 control-label">优先级：</label>
            <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <span class="text">
                    <?php 
                    switch ($qaitem['priority'])
                    {
                    	case 0:
                    		echo '默认等待';
                    		break;
                    	case 1:
                    		echo '比较重要';
                    		break;
                    	case 2:
                    		echo '十分紧急';
                    		break;
                    	default:
                    		echo '请选择优先级';
                    }
                    ?>
                     </span>
                </button>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">确定</button>
            </div>
        </div>
    </form>
    </div>
</div>